package com.sdkj.controller;

import com.sdkj.service.ReportService;
import com.sdkj.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/report")
public class ReportController {
    @Resource
    private ReportService reportService;
    //统计这个月截至 1(12个月)年的会员数量信息
    @RequestMapping("/getMemberReport")
    public Result getMemberReport(){
        Map<String,Object> map  = reportService.getMemberReport();
        return  new Result(true,"",map);
    }
    @RequestMapping("/getSetmealReport")
    public Result getSetmealReport(){
        Map<String, Object > map = reportService.getSetmealReport();
        return  new Result(true,"",map);
    }
    //获取运行数据
    @RequestMapping("/getBusinessReportData")
    public Result getBusinessReportData(){
        Map<String,Object> map =  reportService.getBusinessReportData();
        return  new Result(true,"",map);
    }


}

